package phoenix.web.locators.backend;

import org.openqa.selenium.By;

/**
 * Search page (backend) locators
 */
public class SearchPageLocators
{
	// Search form
	public By txtUserForm = By.id("FindUserForm_user");
	public By txtUserFormCreditCard = By.id("FindUserForm_ccl");
	public By btnFind = By.xpath(".//button[@name='yt0']");

	// Actions on user
	public By linkUnmarkAsScammer = By.xpath(".//a[@class='not_scammer btn']");
	public By linkMarkAsTest = By.xpath(".//a[contains(@href,'/user/markTester')]");
	public By linkMarkAsNotTest = By.xpath(".//a[contains(@href,'/user/markNotTester')]");
	public By linkUnmarkAsTest = By.xpath(".//a[contains(@href,'/user/markNotTester')]");
	public By linkMarkAsHot = By.linkText("Set hot");
	public By linkUnmarkAsHot = By.linkText("Unset hot");

	// User data
	public By blockUserStatus = By.xpath(".//*[@class='row-fluid user-block'][2]/h5/span");
	public By blockUserScammerStatus = By.xpath(".//*[@id='status_scammer']/b[1]");
	public By blockUserID = By.xpath(".//*[@id='yw1']/tbody/tr[1]/td");
	public By blockUserEmail = By.xpath(".//*[@id='yw1']/tbody/tr[3]/td");
	public By blockUserScreenname = By.xpath(".//*[@id='yw1']/tbody/tr[5]/td");
	public By blockUserPassword = By.xpath("//table[@id='yw1']/tbody/tr[6]/td");
	public By blockUserKey = By.xpath(".//*[@id='yw1']/tbody/tr[7]/td");
	public By blockUserSiteID = By.xpath(".//*[@id='yw1']/tbody/tr[8]/td");
	public By blockUserGender = By.xpath(".//*[@id='yw1']/tbody/tr[10]/td");
	public By blockUserSexuality = By.xpath(".//*[@id='yw1']/tbody/tr[11]/td");
	public By blockUserCountry = By.xpath(".//*[@id='yw1']/tbody/tr[14]/td");
	public By blockUserBirthDay = By.xpath(".//*[@id='yw1']/tbody/tr[15]/td");
	public By blockUserRegDate = By.xpath(".//*[@id='yw1']/tbody/tr[16]/td");
	public By blockUserAge = By.xpath(".//*[@id='yw1']/tbody/tr[21]/td");
	public By blockUserRegSource = By.xpath(".//*[@id='yw1']/tbody/tr[30]/td");
	public By blockUserPlatform = By.xpath(".//*[@id='yw1']/tbody/tr[32]/td");

	public By btnPackagePermission = By.xpath("(//*[@id='payment_status']//tbody//tr)[1]//a");
	public By btnTwoPermission = By.xpath("(//*[@id='payment_status']//tbody//tr)[2]//a");
	public By btnThreePermission = By.xpath("(//*[@id='payment_status']//tbody//tr)[3]//a");
	public By btnAllFeatures = By.xpath("(//*[@id='payment_status']//tbody//tr)[4]//a");
	public By btnPackagePermissionSecond = By.xpath("(//*[@id='payment_status']//tbody//tr)[5]//a");
	public By btnPackagePermissionActive = By.xpath(".//*[@id='yw3']/table/tbody/tr[1]/td[3]//*[contains(@class,'permission btn btn-success on')]");

	public By blockCreditHistory = By.xpath("//*[@class='items table table-striped table-bordered table-condensed']");
	public By blockCreditValue = By.xpath("//*[@class='items table table-striped table-bordered table-condensed']//tbody/tr[1]/td[5]");
	public By blockEmptyCreditHistory = By.xpath("//*[@class='items table table-striped table-bordered table-condensed']//span[@class='empty']");
	public By btnTwoPermissionAdditional = By.xpath("(//*[@id='payment_status']//tbody//tr)[4]//a");

	public By blockPackage = By.xpath("//a[@data-permission-id='1']");
	public By blockFreeCommunicationSpecialDelivery = By.xpath("//a[@data-permission-id='2']");
	public By blockTopInSearch = By.xpath("//a[@data-permission-id='7']");
	public By blockFullPermissions = By.xpath("//a[@data-permission-id='5']");
	public By blockFreeCommunication = By.xpath("//a[@data-permission-id='30']");
}
